/*
 * @Author: WangLong
 * @Date: 2024-03-26 15:02:00
 * @LastEditTime: 2024-03-27 10:15:34
 * @LastEditors: WangLong
 * @Description:
 * @FilePath: \front_erp\src\api\serve\property.js
 */
import request from "@/utils/request";

// 查询知识产权申请列表
export function getPropertApi(query, data) {
  return request({
    url: "/system/IntellectualProperty/list",
    method: "post",
    params: query,
    data,
  });
}
// 查询知识产权审核列表
export function getPropertCheckListApi(query, data) {
  return request({
    url: "/system/IntellectualProperty/selectPropertyCheckList",
    method: "post",
    params: query,
    data,
  });
}

//新增知识产权申请
export function addPropertyApi(data) {
  return request({
    url: "/system/IntellectualProperty/add",
    method: "post",
    data,
  });
}

// 获取知识产权申请详细信息
export function getPropertyDetailApi(intellectualPropertyId) {
  return request({
    url: `/system/IntellectualProperty/getInfo`,
    method: "get",
    params: { intellectualPropertyId },
  });
}

// 审核知识产权申请-撤回知识产权申请
export function checkPropertyApi(data) {
  return request({
    url: "/system/IntellectualProperty/check",
    method: "post",
    data,
  });
}
// 删除知识产权申请
export function deletePropertyId(intellectualPropertyIds) {
  return request({
    url: `/system/IntellectualProperty/remove`,
    method: "get",
    params: { intellectualPropertyIds },
  });
}

//修改知识产权申请
export function editPropertytApi(data) {
  return request({
    url: "/system/IntellectualProperty/edit",
    method: "post",
    data,
  });
}


// 审核进度
export function selectAuditList(deliveryApplyId) {
  return request({
    url: `/system/IntellectualProperty/selectAuditList`,
    method: "get",
    params: { deliveryApplyId },
  });
}

// 审核知识产权申请-撤回知识产权申请
export function saveCancel(data) {
  return request({
    url: "/system/IntellectualProperty/saveCancel",
    method: "post",
    data,
  });
}

